package com.gugee.common.web.system.promise.repository;


import com.gugee.common.web.system.promise.model.Permission;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface PermissionRepository extends CrudRepository<Permission,Long> {
    Optional<Permission> findByNameAndProperty(String name, String property);

    Permission findByName(String name);
}
